<include file="../header" />
<head>
	<link rel="stylesheet" href="/assets/base/repair/js/sweetalert/lib/sweet-alert.css">
</head>
<body class="bg-blue">
<div class="wraper text-white lineheight15">
	<p class="tips-title text-center">餐品预订成功</p>
	<a class="qrcode-success" href="{BEESCRM::U('Schoolirs/order/qrcode',array('order_id'=>$orderInfo['order_id'],'res_id'=>$res_id))}">
		<img src="{BEESCRM::U('Schoolirs/order/qrcode',array('order_id'=>$orderInfo['order_id'],'res_id'=>$res_id))}">
	</a>
	<p class="text-12 text-center">凭此二维码领取菜品</p>
	<p class="text-12 text-center">小提示：可以到我的订单页面查看二维码</p>
	<a href="{BEESCRM::U('Schoolirs/order/myOrder',array('res_id'=>$res_id))}" class="btn-know text-center">我知道了</a>
</div>
<input type="hidden" id="orderSn" value="{BEESCRM:$orderInfo.order_sn}">
<input type="hidden" id="irs_id" value="{BEESCRM:$res_id}">
<include file="../commonJS" />
<script src="/assets/schoolirs/js/order.js"></script>
<script src="/assets/schoolirs/js/check.js"></script>
<script src="/assets/activity/vote/js/modalEffects.js"></script>
<script>
	$(function(){
		$(document).on('click','.send',function(){
			var id = $(this).data('id');
			var res_id = $('#res_id').val();
			$.confirm('确认发货吗？', drop);
			function drop() {
				var json = {};
				var data = {};
				data.id = id;
				json.data = data;
				json.url = '/Schoolirs/manage/send/res_id/'+res_id;
				json.method = 'post';
				json.type = 'json';
				$.getAjax(json, true, reload, '');
			}
		});
	});

	//页面刷新
	function reload(){
		setTimeout('location.reload()',1000);
	}


</script>
</body>
</html>
